def list_sum(num_list):
    res = 0
    for val in num_list:
        res += val
    return res
def list_avg(num_list):
    return list_sum(num_list) / len(num_list)
def list_max(num_list):
    res = num_list[0]
    for val in num_list:
        if val > res:
            res = val
    return res
def list_min(num_list):
    res = num_list[0]
    for val in num_list:
        if val < res:
            res = val
    return res